
#ifndef _HOTCARD_H_
#define _HOTCARD_H_


#define A50_HOTCARD_LIST_RECORD		5

#define A50_HOTCARD_UPDATE			1
#define A50_HOTCARD_CLEAR			2

#define A50_HOTCARD_INSERT			0x30
#define A50_HOTCARD_DELETE			0x31

#define A50_HOTCARD_RECORD_SIZE		10
#define A50_HOTCARD_PAN_LEN			19


struct hotcard_list {
	unsigned char	msg_class:4;
	unsigned char	action:4;
	unsigned char	hotcard_list[250];
};


int inInitHotCard( void );
int inProcessHotCardList( unsigned char ucAction, unsigned char *pucHotCardData );
void vdUnpackHotcardRecord( char *action, char *szPan, unsigned char *data );
int inClearHotCardList( void );
int inInsertHotCardEntry( char *szPAN );
int inDeleteHotCardEntry( char *szPAN );
int inCheckHotCardList( char *szPAN );
int strnocpy(char *dest, char *source, int length);

#endif
